<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <script src="campeonatos.js" type="text/javascript"/>
        <title>BrasilFA - O seu site de Futebol Americano</title>
    </h:head>
    <h:body>
        <h:form>
            <h:inputHidden value="#{timeBean.time.id}" />
            
            <table border="1" cellpadding="5" cellspacing="1">
                <tr>
                    <td>
                        Nome:
                    </td>
                    <td>
                        <p:inputText value="#{timeBean.time.name}" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <h:commandButton action="#{timeBean.salvar()}" value="Cadastrar" />
                        <h:button outcome="time_listar" value="Voltar" />
                    </td>
                </tr>
            </table>
        </h:form>
    </h:body>
</html>